package com.yhb.channel.provider.event;

import com.yhb.channel.provider.event.EventType;
import com.yhb.channel.utils.ChannelJSONUtil;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PayChannelEventBase {
    EventType type;
    String payload;

    public String toJson() {
        return ChannelJSONUtil.toJson(this);
    }
}
